//
//  MyLabel.m
//  SmileRead
//
//  Created by dllo on 15/8/26.
//  Copyright (c) 2015年 JIZ. All rights reserved.
//

#import "MyLabel.h"
#import "Path.h"

@implementation MyLabel

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width / 5 * 2, self.frame.size.height)];
        self.imageView.image = [UIImage imageWithContentsOfFile:[Path pathOfImageWithName:@"shouting.png"]];
        [self addSubview:self.imageView];
        [_imageView release];
        
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 5 * 2, 0, self.frame.size.width / 5 * 3, self.frame.size.height)];
        [self addSubview:self.label];
        [_label release];
        
    }
    return self;
}

- (void)dealloc
{
    [_imageView release];
    [_label release];
    [super dealloc];
}



@end
